<?php

require ("db_conn.php");
if(isset($_POST))
{
    $yhm=$_POST["yhm"];

    $sql="insert into users(usename) values('$yhm')";
   $rs=$db-query($sql);
   var_dump($rs);
   if($rs)
   {
       echo "<script language='javascript' type='rext/javascript'>;"
       echo "alert('修改成功');";
       echo "window.location.href='index.php'";
       echo "</script>";
   }
 else
     {
     echo "<script>alert('注册失败！');location.href='regsiter_3.php</script>";  
   }
}
